#include "ResourceManager.h"
//////////////////////////////////////////////////////////////////////////
/// Sho
//////////////////////////////////////////////////////////////////////////
ResourceManager* ResourceManager::_instance = NULL;

ResourceManager* ResourceManager::GetInst()
{
	if(ResourceManager::_instance == NULL)
	{
		_instance = new ResourceManager();
	}

	return _instance;
}

ResourceManager::ResourceManager()
{
	texture = new UINT[MaxTexture];
	texture[Leo] = SOIL_load_OGL_texture
		(
		"Resource/texture/leo.jpg",
		SOIL_LOAD_AUTO,
		SOIL_CREATE_NEW_ID,
		SOIL_FLAG_INVERT_Y
		);
	//add them texture moi o day 
}


ResourceManager::~ResourceManager(void)
{
}
// Ham load texture voi ID
void ResourceManager::LoadTexture(int ID)
{
	glBindTexture(GL_TEXTURE_2D, texture[ID]);
}
